
<template>
  <el-button @click="openPreview">预览</el-button>
</template>
<script setup lang="ts">
import {getAccessToken} from "@/utils/auth";
import { config } from '@/config/axios/config'
const token = getAccessToken()
const openPreview=async () => {

  window.open(`${import.meta.env.VITE_BASE_URL}/cms/templates/preview/index?token=Bearer ${token}`)
}

</script>

<style scoped lang="scss">

</style>
